
#include "main.h"

#include "../sc-k/SWLcd.h"
	
void _write(u16 uiAddress, u8 ucData);
unsigned char _read(u16 uiAddress);


double read_double(u8 addr);

void write_double(u8 addr, double val);
void write_word(u16 addr, u16 val);
u16 read_word(u16 addr);


void fuse2(char* str,u16 val);
void fuse1(char* str,u16 val);
void fuse1i(char* str,i16 val);

#define WAITMS(x)	_delay_ms(x)
#define WAITUS(x)	_delay_us(x)



#define ENT (PINA & BIT(3))
#define PLU (PINA & BIT(4))
#define MIN (PINA & BIT(5))

uint8_t crc8( uint8_t *data, uint16_t number_of_bytes_in_data );

//custom chars

extern char cuCharA[8];
extern char cuCharL[8];